react 18 createroot

68

react 18 createroot -

import React from 'react';
import {createRoot}  from 'react-dom/client';
import App from './App';

const root = createRoot(document.getElementById("root"))
root.render
  (
    <App />
  )

Comments

Submit
0 Comments